package com.itheima.ArrayStudy;

public class ArrayDemo1 {
    public static void main(String[] args) {
        randomCall();
    }

    public static void randomCall() {
        String[] arr = {"张三", "李四", "王五", "赵六", "小七"};
        int index = (int) (Math.random() * arr.length);
        String str = arr[4];
        System.out.println(arr[index]);

        int len = arr.length;
        System.out.println(len);
    }
}
